
public class PLPatternAboveOf extends PLPattern {
	
	
	public PLPatternAboveOf(){
		super("Above");
	}
	
	public float ValidateResponse(PLShape query, PLShape response, PLOutShape outBetterMatch){
	
			//returns confidence of 1 if response line is above query line, else 0
			float conf=0;
			
			if(query.GetCenter().y>response.GetCenter().y){
				conf=1;
			}
			else{
				conf=0;
			}		

		return conf;
				
		
	}
		
}
